package com.mazaiting.instructions.base;

import com.mazaiting.rtda.MtFrame;

/**
 * 有一些指令需要访问运行时常量池，常量池索引由两字节操 作数给出
 *
 * @author mazaiting
 * @since 2021/8/14
 */
public class Index16Instruction implements Instruction{
    /**
     * 常量池索引 u2
     */
    protected int index;

    @Override
    public void fetchOperands(BytecodeReader reader) {
        this.index = reader.readU2ToUnsignedShort();
    }

    @Override
    public void execute(MtFrame frame) {

    }
}
